﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("Quality", "Quality", new string[] { "ORDERNO" })]
    [KnownType(typeof(Quality))]
    public class Quality
    {
        public Quality()
        {

        }
        private String _ORDERNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERNO", System.Data.DbType.String)]
        public String ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } }

        private int _SEQNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SEQNO", System.Data.DbType.Int16)]
        public int SEQNO { get { return _SEQNO; } set { _SEQNO = value; } }

        private int _WAREHOUSEID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSEID", System.Data.DbType.Int16)]
        public int WAREHOUSEID { get { return _WAREHOUSEID; } set { _WAREHOUSEID = value; } }

        private string _WAREHOUSECODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSECODE", System.Data.DbType.String)]
        public string WAREHOUSECODE
        {
            get { return _WAREHOUSECODE; }
            set { _WAREHOUSECODE = value; }
        }

        private string _WAREHOUSENAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSENAME", System.Data.DbType.String)]
        public string WAREHOUSENAME
        {
            get { return _WAREHOUSENAME; }
            set { _WAREHOUSENAME = value; }
        }

        private int _GOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSID", System.Data.DbType.Int32)]
        public int GOODSID { get { return _GOODSID; } set { _GOODSID = value; } }

        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }

        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }

        private int _QUALITYTYPE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("QUALITYTYPE", System.Data.DbType.Int16)]
        public int QUALITYTYPE { get { return _QUALITYTYPE; } set { _QUALITYTYPE = value; } }

        private int _INSPECTRESULT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("INSPECTRESULT", System.Data.DbType.Int16)]
        public int INSPECTRESULT { get { return _INSPECTRESULT; } set { _INSPECTRESULT = value; } }

        private int _UNQUALIFIEDREASON;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("UNQUALIFIEDREASON", System.Data.DbType.Int16)]
        public int UNQUALIFIEDREASON { get { return _UNQUALIFIEDREASON; } set { _UNQUALIFIEDREASON = value; } }

        private Decimal _NOTIFYQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("NOTIFYQTY", System.Data.DbType.Decimal)]
        public Decimal NOTIFYQTY { get { return _NOTIFYQTY; } set { _NOTIFYQTY = value; } }

        private Decimal _RECEIPTQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIPTQTY", System.Data.DbType.Decimal)]
        public Decimal RECEIPTQTY { get { return _RECEIPTQTY; } set { _RECEIPTQTY = value; } }

        private Decimal _QUALITIEDQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("QUALITIEDQTY", System.Data.DbType.Decimal)]
        public Decimal QUALITIEDQTY { get { return _QUALITIEDQTY; } set { _QUALITIEDQTY = value; } }

        private Decimal _UNQUALITIEDQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("UNQUALITIEDQTY", System.Data.DbType.Decimal)]
        public Decimal UNQUALITIEDQTY { get { return _UNQUALITIEDQTY; } set { _UNQUALITIEDQTY = value; } }

        private String _INSPECTOR;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("INSPECTOR", System.Data.DbType.String)]
        public String INSPECTOR { get { return _INSPECTOR; } set { _INSPECTOR = value; } }

        private DateTime _INSPECTDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("_INSPECTDATE", System.Data.DbType.DateTime)]
        public DateTime INSPECTDATE { get { return _INSPECTDATE; } set { _INSPECTDATE = value; } }

        private String _REMARK;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("REMARK", System.Data.DbType.String)]
        public String REMARK { get { return _REMARK; } set { _REMARK = value; } }

    }
}
